using System;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml;
using System.Xml.XPath;
using System.Xml.Schema;

public partial class DownloadList : System.Web.UI.Page
{

    protected void Page_Load(object sender, EventArgs e)
    {
        DownloadCatalog(HttpContext.Current.Response);
    }

    void DownloadCatalog(HttpResponse response)
    {
        response.ClearContent();
        response.ContentType = "text/xml";
        XmlWriterSettings settings = new XmlWriterSettings();
        settings.Indent = true;
        using (XmlWriter writer = XmlWriter.Create(response.OutputStream, settings))
        {
            writer.WriteStartElement("DownloadLists");

            //===========List 1======================================//
            writer.WriteStartElement("List");
            writer.WriteAttributeString("Name", "MaterialBill");
            writer.WriteAttributeString("Url", "MaterialBill.aspx");
            writer.WriteEndElement();
            //===========List 2=====================================//
            writer.WriteStartElement("List");
            writer.WriteAttributeString("Name", "PackingTask");
            writer.WriteAttributeString("Url", "PackingTask.aspx");
            writer.WriteEndElement();
            //==========List3=====================================//
            writer.WriteStartElement("List");
            writer.WriteAttributeString("Name", "Message");
            writer.WriteAttributeString("Url", "MessageList.aspx");
            writer.WriteEndElement();
            //==========List4====================================//
            writer.WriteEndElement();//DownloadLists Element end
            writer.Flush();
            writer.Close();
        }
        response.End();

    }
}
